const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('coreApi', {
  writeFile: (options) => ipcRenderer.on('writeFile', options),
  readFile: (options) => ipcRenderer.on('readFile', options),
});